package com.xgjweb.fsi.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.xgjweb.common.action.XgjWebAction;
import com.xgjweb.fsi.domain.Song;
import com.xgjweb.fsi.service.ISongService;

/**
 * 
 * @author xgj
 * 
 */
public class SongAction extends XgjWebAction {
	ISongService songService;

	public void setSongService(ISongService songService) {
		this.songService = songService;
	}

	/**
	 * 删除
	 */
	public Boolean deleteSong(Song song) throws Exception {
		return songService.deleteSong(song);
	}

	/**
	 * 查找
	 */
	public Song findSong(Song song) throws Exception {
		return songService.findSong(song);
	}
	/**
	 * 更新
	 */
	public Boolean updateSong(Song song) throws Exception {
		return songService.updateSong(song);
	}
	/**
	 * 查询
	 */
	public List<Song> querySong() throws Exception {
		return songService.querySong();
	}

	/**
	 * 上传
	 */
	public Boolean addSong(Song song)
			throws Exception {
		return 	songService.addSong(song);
	}
}
